Quiz: Data Types

To View Tricks: Login Required

Number of Questions: 10

Question: 1 -

Choose the wrong statement about Java programming?

Options:
  1. Java supports unsigned integers

  2. Java supports signed integers

  3. Java supports signed char

  4. None of the above

  5. Answer:

    Java supports unsigned integers

    Solution:

    Only C language supports unsigned integers. Java does not support.


Question: 2 -

What does a Data Type in Java refers to?

Options:
  1. None of the above

  2. The technique how data is retreived

  3. The place where data is stored

  4. The type or variety of data being handled for reading and writing

  5. Answer:

    The type or variety of data being handled for reading and writing

    Solution:

    Integers, Real numbers, Boolean, Characters etc


Question: 3 -

which among the following is not a Data Type in Java?

Options:
  1. int

  2. long double

  3. double

  4. short

  5. Answer:

    long double

    Solution:

    "long double" is present only in C language.


Question: 4 -

What is a Primitive Data Type in Java?

Options:
  1. Data Type which is implemented in a non-object oriented way.

  2. Data Type which is implemented in a machine-dependent way

  3. Data type, which is implemented in an Object-oriented way.

  4. None of the above

  5. Answer:

    Data Type which is implemented in a non-object oriented way.

    Solution not available.

Question: 5 -

Which data type among the following is an implementation of Objects or OOPs?

Options:
  1. char

  2. None of the above

  3. byte

  4. int

  5. Answer:

    None of the above

    Solution:

    All primitive data types are implemented in a Non-Object Oriented way.